﻿<UserControl
    x:Class="CodeShow.CS.Shared.BindingBindingDemo"
    DataContext="{Binding MyBindingItem, RelativeSource={RelativeSource Self}}"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:CodeShow.CS.Shared">
    
    <UserControl.Resources>
        <Style 
            TargetType="TextBlock">
            <Setter 
                Property="HorizontalAlignment"
                Value="Center" />
            <Setter
                Property="VerticalAlignment"
                Value="Center" />
            <Setter
                Property="Margin"
                Value="10" />
        </Style>
    </UserControl.Resources>
    
    <Grid>
        <StackPanel VerticalAlignment="Top">
            <TextBlock Text="{Binding Title}"
                            FontSize="30" />
            <TextBlock Text="{Binding Description}"
                            FontSize="16" />
        </StackPanel>
    </Grid>
</UserControl>
